#include "fib.h"

int ComputeFib(int n)
{
    int a = 1;
    int b = 1;
    int pri_num, ans;
    if(n == 1 || n == 2)
    {
        return 1;
    }
    else
    {
        pri_num = 1;
        ans = 1;
        for(int i = 3; i < n + 1; i++)
        {
            int tmp = ans;
            ans += pri_num;
            pri_num = tmp;      
        }
        return ans;
    }
    
}